<template>
	<view>
		<view class="allRead myboxShadow" @click="allRead">
			<u-icon name="email" size="28" color="#626570"></u-icon>
			<text>全部已读</text>
		</view>
		<view class="messagePage">
			<view class="messageContent myboxShadow">
				<view class="messageTitle">你好2022！元旦服务专区来啦</view>
				<view class="messageInfo">防疫服务、天气服务、出行服务、文旅服务、日常服务防疫服务、天气服务、出行服务、文旅服务、日常服务防疫服务、天气服务、出行服务、文旅服务、日常服务
				</view>
				<view class="messageTime">2021年12月31日</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			allRead() {
				console.log("全部已读");
			}
		}
	}
</script>

<style>
	page {
		background-color: #eff5f6;
	}

	.allRead {
		height: 115.38rpx;
		background-color: #fff;
		display: flex;
		justify-content: start;
		align-items: center;
		color: #626570;
		padding-left: 30px;
	}
	
	.allRead:active {
		background-color: #f9f9f9;
	}

	.messagePage {
		padding: 15px;
	}

	.messageContent {
		background-color: #fff;
		padding: 15px;
		border-radius: 8px;
	}

	.messageTitle {
		font-weight: 600;
		font-size: 17px;
	}

	.messageInfo {
		color: #60646f;
		margin-top: 6px;
		overflow: hidden;
		text-overflow: ellipsis; 
		display: -webkit-box; 
		-webkit-line-clamp: 2; 
		-webkit-box-orient: vertical; 
	}
	.messageTime {
		margin-top: 6px;
		color: #a2a69d;
	}
</style>
